projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09b1339
)
(EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat where appropriate.
author
Adrian Robert
<Adrian.B.Robert@gmail.com>
Mon, 12 Oct 2009 00:26:41 +0000
(
00:26
+0000)
committer
Adrian Robert
<Adrian.B.Robert@gmail.com>
Mon, 12 Oct 2009 00:26:41 +0000
(
00:26
+0000)
src/nsimage.m
patch
|
blob
|
history
diff --git
a/src/nsimage.m
b/src/nsimage.m
index 9ef7ad37a0f382aab2062443b2b488be242b67d6..87499b0a232b367fdd22c2b6e3af8d833023b973 100644
(file)
--- a/
src/nsimage.m
+++ b/
src/nsimage.m
@@
-329,7
+329,7
@@
static EmacsImage *ImageList = nil;
NSSize s = [self size];
int len = (int) s.width * s.height;
unsigned char *planes[5];
-
f
loat r, g, b, a;
+
CGF
loat r, g, b, a;
NSColor *rgbColor;
if (bmRep == nil || color == nil)
@@
-431,7
+431,7
@@
static EmacsImage *ImageList = nil;
else if (onTiger)
{
NSColor *color = [bmRep colorAtX: x y: y];
-
f
loat r, g, b, a;
+
CGF
loat r, g, b, a;
[color getRed: &r green: &g blue: &b alpha: &a];
return ((int)(a * 255.0) << 24)
| ((int)(r * 255.0) << 16) | ((int)(g * 255.0) << 8)